package com.dd.cloud.user.entity.news;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dd.cloud.common.constants.RegularConstants;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * app消息对应union的各种机型配置参数,个推使用
 *
 * @author czg
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "app消息对应union的各种机型配置参数,个推使用")
public class AppMsgUnionConfig implements Serializable {

    private static final long serialVersionUID = 1231241232L;

    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 机型
     */
    @Column(length = RegularConstants.Verify.MAX_NAME, comment = "机型")
    private String mobModel;

    /**
     * appId
     */
    @Column(length = RegularConstants.Verify.Content_DESC, comment = "appId")
    private String appId;

    /**
     * appKey
     */
    @Column(length = RegularConstants.Verify.Content_DESC, comment = "appKey")
    private String appKey;

    /**
     * appSecret
     */
    @Column(length = RegularConstants.Verify.Content_DESC, comment = "appSecret")
    private String appSecret;

    /**
     * masterSecret
     */
    @Column(length = RegularConstants.Verify.Content_DESC, comment = "masterSecret")
    private String masterSecret;

    /**
     * 接口地址
     */
    @Column(length = RegularConstants.Verify.MAX_URL, comment = "接口地址")
    private String host;



    /**
     * 操作人id
     */
    @Column(comment = "操作人id")
    private Integer operId;

    /**
     * 状态
     */
    @Column(type = MySqlTypeConstant.TINYINT, comment = "状态 1有效 -1删除")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;
}
